﻿package sliz.ui 
{
	import flash.text.StyleSheet;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	/**
	 * ...
	 * @author sliz
	 */
	public class Link extends TextField
	{
		public function Link(label:String,url:String,css:String="a{color:#000000;font-size:15px;font-family:Arial;font-weight:bold;text-decoration:underline;}a:hover {color:#ff0000;}") 
		{
			var style:StyleSheet = new StyleSheet();
			style.parseCSS(css);
			styleSheet = style;
			autoSize = TextFieldAutoSize.LEFT;
			htmlText = "<a href='" + url + "' target='_blank'>" + label + "</a>";
		}
		
	}

}